<?php
if(!isset($AppUI) ||
    !isset($_SESSION['category']) ||
    (isset($_SESSION['category']) && (($_SESSION['category']&1<<2) == 0))) {
	$this->_redirect(HOST_BACKEND);
}
$intCategoryId 			= $this->input->get('categoryid', 0);
$this->load->model('category_model', 'category');
$arrRow					= $this->category->get($intCategoryId);
$this->smarty->assign('back', isset($_SESSION[SESSION_BACKURL]) ? $_SESSION[SESSION_BACKURL] : HOST_BACKEND);
$this->smarty->assign('row', $arrRow);
$this->smarty->display('category/edit.tpl');
